<?php

/**
 * Description of Dimension3
 *
 * @author yahn
 */
class Dimension3 {

    private $dimension1, $dimension2, $niveau, $descr;

    public function __construct(Dimension1 $d1, Dimension2 $d2, $niveau, $descr) {
        $this->dimension1 = $d1;
        $this->dimension2 = $d2;
        $this->niveau = $niveau;
        $this->descr = $descr;
    }

    public function setDimension1(Dimension1 $d1) {
        $this->dimension1 = $d1;
    }

    public function setDimension2(Dimension2 $d2) {
        $this->dimension2 = $d2;
    }

    public function setNiveau($niveau) {
        $this->niveau = (int) $niveau;
    }

    public function setDescr($descr) {
        $this->descr = $descr;
    }

    public function getDimension1() {
        return $this->dimension1;
    }

    public function getDimension2() {
        return $this->dimension2;
    }

    public function getNiveau() {
        return $this->niveau;
    }

    public function getDescr() {
        return $this->descr;
    }

    /*public function __toString() {
        return "<br>\t<i>Dimension3 : </i><b>Niveau</b> :" . $this->niveau . "<b>Descr</b>" . $this->descr;
    }*/

}

?>
